package com.wyz.tracing.domain.entity.tracing.context;

import com.wyz.tracing.domain.entity.base.Aggregate;
import com.wyz.tracing.domain.entity.base.Identifier;

import java.io.IOException;

/**
 * @author wyz
 * @version 1.0
 * @date 2023/8/15
 */
public interface TraceContext<T extends Aggregate<ID>, ID extends Identifier> {

    void add(ID id, T aggregate) throws IOException, ClassNotFoundException;

    T find(ID id);

    void remove(ID id);
}
